package com.senney.practice.spring.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring.xml");
        Calculator calculator = ctx.getBean(Calculator.class);
        calculator.sum(1,1);
        calculator.divide(5,0);
    }
}
